//
//  BYUserManager.h
//  ZhiHuiLiJiang
//
//  Created by 胡忠诚 on 2018/11/21.
//  Copyright © 2018 WisdomLijiang. All rights reserved.
//用户信息管理

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

#define userData [BYUserManager shareBYUserManager].curUserdata
#define userManager [BYUserManager shareBYUserManager]
typedef void (^loginBlock)(BOOL success, NSString *msg,id BODY);//登录的回调
@interface BYUserManager : NSObject
BYSingtonH(BYUserManager)
/**用户数据*/
@property (nonatomic, strong)BYUserData *curUserdata;

//登录
- (void)requestLoginParams:(NSDictionary *)params completion:(loginBlock)completion;
//退出登录
- (void)requestlogout:(NSDictionary *)params logout:(loginBlock)completion;


@end

NS_ASSUME_NONNULL_END
